import org.junit.Test;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
import java.time.temporal.ChronoUnit;
import java.util.HashMap;

/**
 * @version 1.0
 * @auyhor dongxin
 * @date 2020/12/4 16:47
 **/
public class UnitTest2 {
    @Test
    public void test1(){
        LocalDate now=LocalDate.now();
        System.out.println(LocalDate.now().isBefore(LocalDate.of(2020,12,3)));
        System.out.println(now.plus(1,ChronoUnit.WEEKS));
        LocalTime localTime=LocalTime.now();
        System.out.println(localTime);
    }
    @Test
    public void test2(){
        LocalDateTime now =LocalDateTime.now();
        System.out.println(now.format(DateTimeFormatter.ISO_LOCAL_DATE));
    }

    interface A{
        default void aaa(){

        }
    }

}
